<?php
class Frontend_Application_Resource_View extends Zend_Application_Resource_ResourceAbstract {
	
	
	public function init(){
	
		$view = new Zend_View($this->getOptions());
		

		// configure the view helper		
        $view->addHelperPath( "Frontend/View/Helper", 'Frontend_' );
        
        // Add the css
        $cssHelper = new Frontend_View_Helper_Css($this->getOptions());
        $view->registerHelper($cssHelper, 'css');            

        
        $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper(
            'ViewRenderer'
        );
                
        $viewRenderer->setView($view);		
        
        return $view;
		
	}
	
	
}